 <meta charset="utf-8">
 <div class="box" id="biz_salariedStaff_lookback_conatainer">
            <div class="box-header with-border">
               <form id="searchForm" role="form" class="form-inline">
                    <div class="form-group">
                         <label>姓名</label>
                         <input name="name" v-model="searchForm.name"   type="text" placeholder="" class="form-control">
                    </div>
                      <div class="form-group">
                         <label>电话</label>
                         <input name="phone" v-model="searchForm.phone"   type="text" placeholder="" class="form-control">
                    </div>
                     <button type="button"  class="btn btn-info pull-right m-t-n-xs" v-kperms="{perm:'authRole:loadAuthRoleList'}"  v-on:click="search();"><strong>查询</strong></button>
                </form>
            </div>
 <div class="box-body">
 	         <div class="btn-group " id="salariedStaffBTableToolbar" role="group">
				<button type="button" class="btn btn-default" v-on:click="confirm">
                        <i class="glyphicon glyphicon-ok" aria-hidden="true"></i>确认
                 </button>
                 <button type="button" class="btn btn-default" v-on:click="cancel">
                        <i class="glyphicon glyphicon-remove" aria-hidden="true"></i>取消
                 </button>                   
				</div>
           <table id="salariedStaffBTable" data-mobile-responsive="true" ></table>
 </div>
 </div>

<script> 
new Vue({  
	  el: '#biz_salariedStaff_lookback_conatainer',  
	  data:{
		  searchForm:{
			  name: null,
			  phone: null,
			  enabled: 1
		  },
		  bus:new Vue(),
	  },
	  mounted:function(){
		 let _this=this;
		 _this.initTable();
	  },
  methods: {
	  initTable:function(){
		  let columns=[
				{checkbox:true},
				{field:'name',title:'授薪人员姓名',width:160,sortable:true},
				{field:'phone',title:'授薪人员电话',width:160,sortable:true},
				{field:'enabled',title:'授薪人员状态',width:100,formatter:zfesUtil.formatEnabled}];
		  let url="tcms/salariedStaff/loadSalariedStaffDataSet";
  		zfesBstable.laodTable($("#salariedStaffBTable"),$("#searchForm"),$("#salariedStaffBTableToolbar"),url,columns,this.searchForm);
	  },
	  search:function(){
		  zfesBstable.reload($("#salariedStaffBTable")); 
	  },
	  refresh:function(){
		  zfesBstable.refresh($("#salariedStaffBTable"));
	  },
  	  confirm: function(){
	  			if(zfesBstable.isOneRow($("#salariedStaffBTable"))){
					  let　_this=this;
					  let row = zfesBstable.getSelections($("#salariedStaffBTable"));
					  zfesLayerEditDg.setCallBackParam(row[0]);
					  zfesLayerEditDg.close();
				}
	  	  },
	  	cancel: function(){
	  		zfesLayerEditDg.close();
	  	 }
 }

});
</script>


